package server

import (
	"shop-api/consts"
	"shop-api/databases/redis"
	"time"
)

func SendCode(phone string) error {
	//TODO:校验手机号格式
	//TODO: 发送短信
	return redis.Set(consts.SMSSendCode+phone, "1234", time.Minute*time.Duration(5))
}
